import { Layout } from '@fl/utils/routerHelper'

const enterpriseManagement: AppRouteRecordRaw = {
    children: [
        {
            component: () => import('@/supplier-pages/enterprise-management/enterprise-info/index.vue'),
            meta: {
                title: '企业信息',
            },
            name: 'enterprise-info-index',
            path: 'info',
        },
        {
            component: () => import('@/supplier-pages/enterprise-management/cooperative-customers/index.vue'),
            meta: {
                title: '合作客户',
            },
            name: 'cooperative-customers-index',
            path: 'cooperative-customers',
        },
        {
            component: () => import('@/supplier-pages/enterprise-management/factory-info/index.vue'),
            meta: {
                title: '工厂信息',
            },
            name: 'factory-info-index',
            path: 'factory-info',
        },
        {
            component: () => import('@/supplier-pages/enterprise-management/enterprise-certification/index.vue'),
            meta: {
                title: '企业认证',
            },
            name: 'enterprise-certification-index',
            path: 'certification',
        },
        {
            component: () => import('@/supplier-pages/enterprise-management/enterprise-certification/edit.vue'),
            meta: {
                activeMenu: '/supplier-pages/enterprise-management/certification',
                hidden: true,
                noTagsView: true,
                title: '更换企业认证',
            },
            name: 'enterprise-certification-edit',
            path: 'certification/edit',
        },
        {
            component: () => import('@/supplier-pages/enterprise-management/enterprise-certification/edit-info.vue'),
            meta: {
                activeMenu: '/supplier-pages/enterprise-management/certification',
                hidden: true,
                noTagsView: true,
                title: '企业信息变更',
            },
            name: 'enterprise-certification-edit-info',
            path: 'certification/edit/info',
        },
        {
            component: () => import('@/supplier-pages/enterprise-management/enterprise-certification/edit-name.vue'),
            meta: {
                activeMenu: '/supplier-pages/enterprise-management/certification',
                hidden: true,
                noTagsView: true,
                title: '企业名称变更',
            },
            name: 'enterprise-certification-edit-name',
            path: 'certification/edit/name',
        },
        {
            component: () => import('@/supplier-pages/enterprise-management/associated-suppliers/index.vue'),
            meta: {
                title: '关联供应商',
            },
            name: 'associated-suppliers-index',
            path: 'associated-suppliers',
        },
        {
            component: () => import('@/supplier-pages/enterprise-management/dealer-management/index.vue'),
            meta: {
                title: '经销商管理',
            },
            name: 'dealer-management-index',
            path: 'dealer-management',
        },
    ],
    component: Layout,
    meta: {
        alwaysShow: true,
        title: '企业管理',
    },
    name: 'enterprise-management',
    path: 'enterprise-management',
}

export default enterpriseManagement
